{% extends 'student/layout.html' %}
{% import "student/page_data.html" as pg %}
{% block content %}
<div class="main-content">
    <!-- #section:basics/content.breadcrumbs -->
    <div class="breadcrumbs" id="breadcrumbs">
        <ul class="breadcrumb">
            <li>
                <i class="ace-icon fa fa-home home-icon"></i>
                <a>笔记管理</a>
            </li>
            <li>
                <a>笔记列表</a>
            </li>
        </ul><!-- /.breadcrumb -->
    </div>
    <!-- /section:basics/content.breadcrumbs -->
    <div class="page-content">
        <!-- /section:settings.box -->
        {% for msg in get_flashed_messages(category_filter=["ok"]) %}
            <div class="alert alert-success alert-dismissible">
                {{ msg }}
            </div>
        {% endfor %}
        <div class="page-content-area">
            <div class="row">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->
                    <div class="row-fluid">
                        <ul class="list-unstyled spaced">
                            {% for v in page_data.items %}
                            <li>
                                <i class="ace-icon fa fa-angle-right bigger-110"></i>
                                <label for="form-field-1">
                                    <a href="{{ url_for('student.article', id=v.id) }}">{{ v.name }}</a>
                                </label>
                                <p style="float: right;margin-right: 160px;">
                                    <a href="{{ url_for('student.student_notes_edit', id=v.id) }}">编辑</a> |
                                    <a href="{{ url_for('student.student_notes_del', id=v.id) }}">删除</a></p>
                            </li>
                            {% endfor %}

                        </ul>
                    </div><!-- PAGE CONTENT ENDS -->
                </div><!-- /.col -->
            </div><!-- /.row -->
        </div><!-- /.page-content-area -->
    </div><!-- /.page-content -->
    <div class="box-footer clearfix" style="margin-top: 15px;margin-right: 130px;">
        {{ pg.page(page_data, "teacher.test_01_list") }}
    </div>
</div>
{% endblock %}